package com.glink.gateway.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : qiushaoshan
 * @create 2024/6/18 9:59
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("center_user")
@NoArgsConstructor
public class UserBean extends Model<UserBean> {

    private static final long serialVersionUID=1L;

    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 标准组织单元id（现在用于存组织编码，直接关联组织表）
     */
    @TableField(value = "org_id")
    private String orgId;

    /**
     * 账号
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 密码
     */
    @TableField(value = "pwd")
    private String pwd;

    /**
     * 姓名
     */
    @TableField(value = "full_name")
    private String fullName;

    /**
     * 用户状态(UserType：01：启用、02：禁用、03：锁定)
     */
    @TableField(value = "status")
    private String status;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 用户解锁时间
     */
    @TableField(value = "unlock_time")
    private Date unlockTime;


    @TableField(value = "create_time")
//    @ApiModelProperty(name = "createTime", notes = "用户创建时间")
    private Date createTime;

    @TableField(value = "modify_time")
//    @ApiModelProperty(name = "modifyTime", notes = "用户修改时间")
    private Date modifyTime;

    @TableField(value = "user_number")
//    @ApiModelProperty(name = "userNumber", notes = "用户编号")
    private String userNumber; 

    @TableField(value = "user_order")
//    @ApiModelProperty(name = "userOrder", notes = "排序")
    private Integer userOrder;

//    @ApiModelProperty(name = "isDelete", notes = "是否删除")
    @TableLogic(value = "0", delval = "1")
    private String isDelete;
}
